class Person:
    def __init__(self):
        #初始化对象属性
        self.name = '小红'
        self.sex = '女'
p1 = Person()
print(p1.name)
print(p1.sex)

